Changes for correct pgrp behavior; approach suggested by Bob
authorJim Blandy <jimb@redhat.com>
Thu, 17 Jun 1993 05:04:57 +0000 (05:04 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 17 Jun 1993 05:04:57 +0000 (05:04 +0000)
Glickstein <bobg@zindigo.z-code.com>:
* m/iris4d.h (LIB_STANDARD): Do list -lbsd here.
* s/irix4-0.h (getpgrp, setpgrp): #define these to call BSDgetpgrp
and BSDsetpgrp.
(GETPGRP_NO_ARG): Don't #define this.
* emacs.c (main): Don't test GETPGRP_NO_ARG.
* sysdep.c (sys_suspend): Don't test GETPGRP_NO_ARG.

src/emacs.c
src/s/irix4-0.h

index 3e18c398f1323e081b65cbfdc7a1bda564c7096e..c38811f117de6ffe2cde9fff54779e07059b5794 100644 (file)
@@ -300,11 +300,7 @@ main (argc, argv, envp)
 
 #ifdef BSD
   {
-#ifdef GETPGRP_NO_ARG
-    inherited_pgroup = getpgrp ();
-#else /* THISSENTENCE_NO_VERB */
     inherited_pgroup = getpgrp (0);
-#endif
     setpgrp (0, getpid ());
   }
 #endif
@@ -687,11 +683,7 @@ shut_down_emacs (sig, no_x, stuff)
   {
     int tpgrp;
     if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1
-#ifdef GETPGRP_NO_ARG
-       && tpgrp == getpgrp ())
-#else
        && tpgrp == getpgrp (0))
-#endif
       {
        fflush (stdout);
        reset_sys_modes ();
index 70c255044dbc887bf86b351e15c6a4e658455c92..e2dbb37c37c2e62c0275047efc6b8c183b7d3eb2 100644 (file)
@@ -3,8 +3,6 @@
 #define USG5_3
 #define IRIX4
 
-#define USE_IRIX_BSDPGRP
-
 #define HAVE_ALLOCA
 #ifndef NOT_C_CODE
 #include <alloca.h>
   strcpy (pty_name, name);                                     \
 }
 
+/* Use the BSD versions of the getpgrp and setpgrp functions.  */
+#define setpgrp(pid, pgrp) BSDsetpgrp((pid), (pgrp))
+#define getpgrp(pid)       BSDgetpgrp(pid)
+
 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
    on this system, so inhibit use of matherr.  */
 #define NO_MATHERR